package com.justnow.offer.argstransfer;

/**
 * @author justnow
 * Created on 2020-09-05
 * Description
 */
public class Demo02 {
    public static void main(String[] args) {
        char[] ch = {'a', 'b', 'c'};
        System.out.println("方法之前ch[0]的值" + ch[0]);
        change(ch);
        System.out.println("方法之后ch[0]的值" + ch[0]);
    }
    public static void change(char[] ch) {
        System.out.println("数组中初始ch[0]的值" + ch[0]);
        ch[0] = 'g';
        System.out.println("数组中修改ch[0]之后的值" + ch[0]);
    }
}
